<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>用户注册</title>
    <style>
        body {
            text-align: center;
            font-family: Arial, sans-serif;
        }
        h2{
            margin: auto;
            text-align: center;
            margin-bottom: 20px;
        }
        .register-container {
            display: inline-block;
            text-align: left;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: inline-block;
            margin-bottom: 5px;
        }
        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-group input[type="url"],
        .form-group select,
        .form-group textarea {
            margin-right: 0;
        }
        .form-group input[type="radio"] {
            margin-right: 5px;
        }
        .form-group .hobbies label {
            display: inline-block;
            margin-right: 20px;
        }
        .button-container {
            text-align: right;
        }
        .button-container button {
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .button-container button:first-child {
            background-color: #5cb85c;
            color: white;
        }
        .button-container button:last-child {
            background-color: #f0ad4e;
            color: white;
        }
    </style>
</head>
<body>
<div class="register-container">
    <h2>用户注册</h2>
    <form action="registerProcess.jsp" method="post">
        <div class="form-group">
            <label for="name">您的姓名：</label>
            <input type="text" id="name" name="name" required>
        </div>
        <div class="form-group">
            <label for="homepage">您的主页的网址：</label>
            <input type="url" id="homepage" name="homepage" placeholder="http://" required>
        </div>
        <div class="form-group">
            <label for="password">您的密码：</label>
            <input type="password" id="password" name="password" required>
        </div>
        <div class="form-group">
            <label for="confirm_password">确认密码：</label>
            <input type="password" id="confirm_password" name="confirm_password" required>
        </div>
        <div class="form-group">
            <label for="age">您的年龄：</label>
            <input type="number" id="age" name="age" required>
        </div>
        <div class="form-group">
            <label>您的性别：</label>
            <label><input type="radio" name="gender" value="male"> 男</label>
            <label><input type="radio" name="gender" value="female"> 女</label>
        </div>
        <div class="form-group">
            <label>您的爱好：</label>
            <div class="hobbies">
                <label><input type="checkbox" name="hobby" value="singing"> 唱歌</label>
                <label><input type="checkbox" name="hobby" value="dancing"> 跳舞</label>
                <label><input type="checkbox" name="hobby" value="football"> 足球</label>
                <label><input type="checkbox" name="hobby" value="basketball"> 篮球</label>
            </div>
        </div>
        <div class="form-group">
            <label for="occupation">您的职业：</label>
            <select id="occupation" name="occupation">
                <option value="student" selected>学生</option>
                <option value="student" selected>教师</option>
                <!-- 其他职业选项可以在这里添加 -->
            </select>
    </form>
    <div class="button-container">
        <button type="submit">确定</button>
        <button type="button" onclick="history.back()">取消</button>
    </div>
    </form>
</div>
</body>
</html>